/**
 * 
 */
package net.kaizhong.j2ee01.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @author kzuser
 *
 */
public class HelloWorldListener implements ServletContextListener
{
    private static final Logger logger = LogManager.getLogger(HelloWorldListener.class);

    public HelloWorldListener()
    {
        logger.info("开始执行构造函数 HelloWorldListener()");
        logger.info("结束执行构造函数 HelloWorldListener()");
    }

    @Override
    public void contextInitialized(ServletContextEvent paramServletContextEvent)
    {
        logger.info("开始执行监听器初始化 HelloWorldListener.contextInitialized()");
        logger.info("结束执行监听器初始化 HelloWorldListener.contextInitialized()");
    }

    @Override
    public void contextDestroyed(ServletContextEvent paramServletContextEvent)
    {
        logger.info("开始执行监听器销毁 HelloWorldListener.contextDestroyed()");
        logger.info("结束执行监听器销毁 HelloWorldListener.contextDestroyed()");
    }

}
